#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @File : main_page.py
# @Autor: FY
# @Date: 2021/8/27

# remote.webdriver包下的WebDriver是所有webdriver的基类
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
# 首页
from studyPageObject2.pages.base_page import BasePage
from studyPageObject2.pages.search_page import SearchPage


class MainPage(BasePage):
    # 私有变量以下划线开头
    _search_locator = (By.ID, "")

    def to_search(self):
        self.find_element(self._search_locator).click()
        return  SearchPage(self.driver)